package com.androidx.p013lv.mine.databinding;

import android.util.SparseIntArray;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.appcompat.widget.Toolbar;
import androidx.databinding.DataBindingComponent;
import androidx.databinding.ViewDataBinding;
import androidx.databinding.adapters.TextViewBindingAdapter;
import androidx.lifecycle.LifecycleOwner;
import com.androidx.p013lv.mine.C1206BR;
import com.androidx.p013lv.mine.C1207R;
import com.androidx.p013lv.mine.activity.WalletHistoryDetailActivity;
import com.androidx.p013lv.mine.generated.callback.OnClickListener;

/* renamed from: com.androidx.lv.mine.databinding.f */
public class ActivityWalletHistoryDetailLayoutBindingImpl extends ActivityWalletHistoryDetailLayoutBinding implements OnClickListener.Listener {
    private static final ViewDataBinding.IncludedLayouts sIncludes;
    private static final SparseIntArray sViewsWithIds;
    private final View.OnClickListener mCallback59;
    private final View.OnClickListener mCallback60;
    private long mDirtyFlags;
    private final TextView mboundView1;
    private final TextView mboundView2;
    private final LinearLayout mboundView3;
    private final TextView mboundView4;

    static {
        ViewDataBinding.IncludedLayouts includedLayouts = new ViewDataBinding.IncludedLayouts(7);
        sIncludes = includedLayouts;
        includedLayouts.setIncludes(0, new String[]{"mine_recycler_layout"}, new int[]{5}, new int[]{C1207R.C1212layout.mine_recycler_layout});
        SparseIntArray sparseIntArray = new SparseIntArray();
        sViewsWithIds = sparseIntArray;
        sparseIntArray.put(C1207R.C1210id.toolbar, 6);
    }

    public ActivityWalletHistoryDetailLayoutBindingImpl(DataBindingComponent dataBindingComponent, View view) {
        this(dataBindingComponent, view, mapBindings(dataBindingComponent, view, 7, sIncludes, sViewsWithIds));
    }

    private ActivityWalletHistoryDetailLayoutBindingImpl(DataBindingComponent dataBindingComponent, View view, Object[] objArr) {
        super(dataBindingComponent, view, 1, (MineRecyclerLayoutBinding) objArr[5], (LinearLayout) objArr[0], (Toolbar) objArr[6]);
        this.mDirtyFlags = -1;
        TextView textView = (TextView) objArr[1];
        this.mboundView1 = textView;
        textView.setTag(null);
        TextView textView2 = (TextView) objArr[2];
        this.mboundView2 = textView2;
        textView2.setTag(null);
        LinearLayout linearLayout = (LinearLayout) objArr[3];
        this.mboundView3 = linearLayout;
        linearLayout.setTag(null);
        TextView textView3 = (TextView) objArr[4];
        this.mboundView4 = textView3;
        textView3.setTag(null);
        this.rootView.setTag(null);
        setRootTag(view);
        this.mCallback59 = new OnClickListener(this, 1);
        this.mCallback60 = new OnClickListener(this, 2);
        invalidateAll();
    }

    @Override // androidx.databinding.ViewDataBinding
    public void invalidateAll() {
        synchronized (this) {
            this.mDirtyFlags = 64;
        }
        this.include.invalidateAll();
        requestRebind();
    }

    /* JADX WARNING: Code restructure failed: missing block: B:10:0x0016, code lost:
        return false;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:8:0x0013, code lost:
        if (r6.include.hasPendingBindings() == false) goto L_0x0016;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:9:0x0015, code lost:
        return true;
     */
    @Override // androidx.databinding.ViewDataBinding
    public boolean hasPendingBindings() {
        synchronized (this) {
            if (this.mDirtyFlags != 0) {
                return true;
            }
        }
    }

    @Override // androidx.databinding.ViewDataBinding
    public boolean setVariable(int i, Object obj) {
        if (C1206BR.status == i) {
            setStatus((Integer) obj);
        } else if (C1206BR.selectMonth == i) {
            setSelectMonth((Integer) obj);
        } else if (C1206BR.statusRefresh == i) {
            setStatusRefresh((Integer) obj);
        } else if (C1206BR.type == i) {
            setType((Integer) obj);
        } else if (C1206BR.click != i) {
            return false;
        } else {
            setClick((WalletHistoryDetailActivity.OnClick) obj);
        }
        return true;
    }

    @Override // com.androidx.p013lv.mine.databinding.ActivityWalletHistoryDetailLayoutBinding
    public void setStatus(Integer num) {
        this.mStatus = num;
        synchronized (this) {
            this.mDirtyFlags |= 2;
        }
        notifyPropertyChanged(C1206BR.status);
        super.requestRebind();
    }

    @Override // com.androidx.p013lv.mine.databinding.ActivityWalletHistoryDetailLayoutBinding
    public void setSelectMonth(Integer num) {
        this.mSelectMonth = num;
        synchronized (this) {
            this.mDirtyFlags |= 4;
        }
        notifyPropertyChanged(C1206BR.selectMonth);
        super.requestRebind();
    }

    @Override // com.androidx.p013lv.mine.databinding.ActivityWalletHistoryDetailLayoutBinding
    public void setStatusRefresh(Integer num) {
        this.mStatusRefresh = num;
        synchronized (this) {
            this.mDirtyFlags |= 8;
        }
        notifyPropertyChanged(C1206BR.statusRefresh);
        super.requestRebind();
    }

    @Override // com.androidx.p013lv.mine.databinding.ActivityWalletHistoryDetailLayoutBinding
    public void setType(Integer num) {
        this.mType = num;
        synchronized (this) {
            this.mDirtyFlags |= 16;
        }
        notifyPropertyChanged(C1206BR.type);
        super.requestRebind();
    }

    @Override // com.androidx.p013lv.mine.databinding.ActivityWalletHistoryDetailLayoutBinding
    public void setClick(WalletHistoryDetailActivity.OnClick onClick) {
        this.mClick = onClick;
        synchronized (this) {
            this.mDirtyFlags |= 32;
        }
        notifyPropertyChanged(C1206BR.click);
        super.requestRebind();
    }

    @Override // androidx.databinding.ViewDataBinding
    public void setLifecycleOwner(LifecycleOwner lifecycleOwner) {
        super.setLifecycleOwner(lifecycleOwner);
        this.include.setLifecycleOwner(lifecycleOwner);
    }

    /* access modifiers changed from: protected */
    @Override // androidx.databinding.ViewDataBinding
    public boolean onFieldChange(int i, Object obj, int i2) {
        if (i != 0) {
            return false;
        }
        return onChangeInclude((MineRecyclerLayoutBinding) obj, i2);
    }

    private boolean onChangeInclude(MineRecyclerLayoutBinding mineRecyclerLayoutBinding, int i) {
        if (i != C1206BR._all) {
            return false;
        }
        synchronized (this) {
            this.mDirtyFlags |= 1;
        }
        return true;
    }

    /* access modifiers changed from: protected */
    @Override // androidx.databinding.ViewDataBinding
    public void executeBindings() {
        long j;
        boolean z;
        String str;
        String str2;
        synchronized (this) {
            j = this.mDirtyFlags;
            this.mDirtyFlags = 0;
        }
        Integer num = this.mStatus;
        Integer num2 = this.mSelectMonth;
        Integer num3 = this.mStatusRefresh;
        Integer num4 = this.mType;
        WalletHistoryDetailActivity.OnClick onClick = this.mClick;
        long j2 = j & 68;
        boolean z2 = true;
        if (j2 != 0) {
            z = ViewDataBinding.safeUnbox(num2) != 0;
            if (j2 != 0) {
                j = z ? j | 1024 : j | 512;
            }
        } else {
            z = false;
        }
        long j3 = j & 80;
        String str3 = null;
        if (j3 != 0) {
            if (ViewDataBinding.safeUnbox(num4) != 1) {
                z2 = false;
            }
            if (j3 != 0) {
                j |= z2 ? 256 : 128;
            }
            str = z2 ? "餘額明細" : "金幣明細";
        } else {
            str = null;
        }
        if ((1024 & j) != 0) {
            str2 = String.valueOf(num2 + "月");
        } else {
            str2 = null;
        }
        long j4 = 68 & j;
        if (j4 != 0) {
            if (!z) {
                str2 = "本月";
            }
            str3 = str2;
        }
        if ((66 & j) != 0) {
            this.include.setStatus(num);
        }
        if ((72 & j) != 0) {
            this.include.setStatusRefresh(num3);
        }
        if ((64 & j) != 0) {
            this.mboundView1.setOnClickListener(this.mCallback59);
            this.mboundView3.setOnClickListener(this.mCallback60);
        }
        if ((j & 80) != 0) {
            TextViewBindingAdapter.setText(this.mboundView2, str);
        }
        if (j4 != 0) {
            TextViewBindingAdapter.setText(this.mboundView4, str3);
        }
        executeBindingsOn(this.include);
    }

    @Override // com.androidx.p013lv.mine.generated.callback.OnClickListener.Listener
    public final void _internalCallbackOnClick(int i, View view) {
        boolean z = false;
        if (i == 1) {
            WalletHistoryDetailActivity.OnClick onClick = this.mClick;
            if (onClick != null) {
                z = true;
            }
            if (z) {
                onClick.btnBack();
            }
        } else if (i == 2) {
            WalletHistoryDetailActivity.OnClick onClick2 = this.mClick;
            if (onClick2 != null) {
                z = true;
            }
            if (z) {
                onClick2.pickerViewShow();
            }
        }
    }
}
